const sendMsgSync = (state, payload ,payloads) => {
	
}
const getMsgTypeSync = (state, payload) => {
	state.msgData = payload
}
const getNextNotice = (state, payload) => {
//	if(state.msgData)
	var unreadMsgList = state.msgData.data.filter(function(item) {
		return item.is_read == 0;
	})

	if(unreadMsgList.length > 0) {
		state.indexNotice = unreadMsgList[0];
	} else{
		state.indexNotice = null;
	}
} 

export default {
	sendMsgSync,
	getMsgTypeSync,
	getNextNotice,
}
